<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>BabyOS: b_hal.c Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="2.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">BabyOS
   &#160;<span id="projectnumber">V2.0.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_b9223522bb56aee4ab59f7ba381d2163.html">bos</a></li><li class="navelem"><a class="el" href="dir_f8a0fa7de2fa8ec1cbca46d8cda2da54.html">hal</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">b_hal.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="b__hal_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment">/*Includes ----------------------------------------------*/</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="b__hal_8h.html">b_hal.h</a>&quot;</span> </div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="b__driver_8h.html">b_driver.h</a>&quot;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &lt;string.h&gt;</span></div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="keyword">extern</span> UART_HandleTypeDef <a class="code" href="group___h_a_l___private___variables.html#ga2cf715bef37f7e8ef385a30974a5f0d5">huart1</a>;</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="group___u_t_i_l_s___private___variables.html#gaf4192a6f2331016cae3bcd9e5f2c7e20">   78</a></span>&#160;<span class="keyword">volatile</span> uint32_t <a class="code" href="group___h_a_l___private___variables.html#gaf4192a6f2331016cae3bcd9e5f2c7e20">bSysTick</a> = 0;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="comment">/****************************************************************************SSD1289*******/</span></div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="comment">/****************************************************************************xpt2046*******/</span></div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="comment">/*******************************************************************************w25x*******/</span></div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="keyword">extern</span> SPI_HandleTypeDef <a class="code" href="group___h_a_l___private___functions.html#gab9da65f935e805137e2eb4e18c5ab224">hspi2</a>;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="keyword">static</span> uint8_t _HalW25X_SPI_RW(uint8_t dat)</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;{</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    uint8_t tmp;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    HAL_SPI_TransmitReceive(&amp;<a class="code" href="group___h_a_l___private___functions.html#gab9da65f935e805137e2eb4e18c5ab224">hspi2</a>, &amp;dat, &amp;tmp, 1, 0xfff);</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <span class="keywordflow">return</span> tmp;</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;}</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> _HalW25X_CS(uint8_t s)</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;{</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    <span class="keywordflow">if</span>(s)</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    {</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        HAL_GPIO_WritePin(W25X_CS_GPIO_Port, W25X_CS_Pin, GPIO_PIN_SET);</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    }</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    {</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;        HAL_GPIO_WritePin(W25X_CS_GPIO_Port, W25X_CS_Pin, GPIO_PIN_RESET);</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    }</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;}</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="group___h_a_l___private___functions.html#ga89861a6c2d2dd31b3d7374ee5777d89a">  125</a></span>&#160;<a class="code" href="structb_w25_x___private__t.html">bW25X_Private_t</a> <a class="code" href="group___h_a_l___private___functions.html#ga89861a6c2d2dd31b3d7374ee5777d89a">bW25X_HalIF</a> = {</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    .<a class="code" href="structb_w25_x___private__t.html#aa2e98ee17d950173785f0a6995b093ef">pSPI_ReadWriteByte</a> = _HalW25X_SPI_RW,</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    .pCS_Control = _HalW25X_CS,</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;};</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<a class="code" href="group___h_a_l___private___functions.html#gad848c83fbd7e14a777f7f417b7f46b87">NEW_W25X_DRV</a>(<a class="code" href="b__driver_8h.html#af7f0766bf0208821b81a8470ca44cbd4">SPIFlashDriver</a>, <a class="code" href="group___h_a_l___private___functions.html#ga89861a6c2d2dd31b3d7374ee5777d89a">bW25X_HalIF</a>);</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="comment">/*******************************************************************************suart*******/</span></div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> _HalSUART_TX(uint8_t s)</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;{</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <span class="keywordflow">if</span>(s)</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    {</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        HAL_GPIO_WritePin(SUART_TX_GPIO_Port, SUART_TX_Pin, GPIO_PIN_SET);</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    }</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    {</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;        HAL_GPIO_WritePin(SUART_TX_GPIO_Port, SUART_TX_Pin, GPIO_PIN_RESET);</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    }    </div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;}</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> _HalSUART2_TX(uint8_t s)</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;{</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    <span class="keywordflow">if</span>(s)</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    {</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;        HAL_GPIO_WritePin(SUART2_TX_GPIO_Port, SUART2_TX_Pin, GPIO_PIN_SET);</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    }</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    {</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;        HAL_GPIO_WritePin(SUART2_TX_GPIO_Port, SUART2_TX_Pin, GPIO_PIN_RESET);</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    }    </div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;}</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="keyword">static</span> uint8_t _HalSUART_RX()</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;{</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    <span class="keywordflow">return</span> HAL_GPIO_ReadPin(SUART_TX_GPIO_Port, SUART_TX_Pin);</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;}</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;<span class="keyword">static</span> uint8_t _HalSUART2_RX()</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;{</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    <span class="keywordflow">return</span> HAL_GPIO_ReadPin(SUART2_TX_GPIO_Port, SUART2_TX_Pin);</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;}</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;</div><div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="group___h_a_l___private___functions.html#ga29cdd536195d19aa494d8b4e4e2185de">  167</a></span>&#160;<a class="code" href="structb_s_u_a_r_t___private__t.html">bSUART_Private_t</a> <a class="code" href="group___h_a_l___private___functions.html#ga29cdd536195d19aa494d8b4e4e2185de">bSUART_Private1</a> = {</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    .<a class="code" href="structb_s_u_a_r_t___private__t.html#a2ca5ac31917efe777c252ab05f01e406">pTxPIN_Control</a> = _HalSUART_TX,</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    .RxPIN_Read = _HalSUART_RX,</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;};</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;</div><div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="group___h_a_l___private___functions.html#gae68a78bd12d688eaf811275a7ed10df8">  172</a></span>&#160;<a class="code" href="structb_s_u_a_r_t___private__t.html">bSUART_Private_t</a> <a class="code" href="group___h_a_l___private___functions.html#gae68a78bd12d688eaf811275a7ed10df8">bSUART_Private2</a> = {</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    .<a class="code" href="structb_s_u_a_r_t___private__t.html#a2ca5ac31917efe777c252ab05f01e406">pTxPIN_Control</a> = _HalSUART2_TX,</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    .RxPIN_Read = _HalSUART2_RX,</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;};</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;<a class="code" href="group___h_a_l___private___functions.html#ga84e9a44bc004fd3206f924e4081b1502">NEW_SUART_DRV</a>(<a class="code" href="b__driver_8h.html#a24eaada719ebb4b96e4410f770a89343">SUART_Driver1</a>, <a class="code" href="group___h_a_l___private___functions.html#ga29cdd536195d19aa494d8b4e4e2185de">bSUART_Private1</a>);</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<a class="code" href="group___h_a_l___private___functions.html#ga84e9a44bc004fd3206f924e4081b1502">NEW_SUART_DRV</a>(<a class="code" href="b__driver_8h.html#ab800dcb63b84a79c806de44eca01c87e">SUART_Driver2</a>, <a class="code" href="group___h_a_l___private___functions.html#gae68a78bd12d688eaf811275a7ed10df8">bSUART_Private2</a>);</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;</div><div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="group___h_a_l___private___functions.html#ga8a3b0ad512a6e6c6157440b68d395eac">  181</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___h_a_l___private___functions.html#ga8a3b0ad512a6e6c6157440b68d395eac">HAL_TIM_PeriodElapsedCallback</a>(TIM_HandleTypeDef *htim)</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;{</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    <a class="code" href="group___s_u_a_r_t___exported___functions.html#gac7be839335ad31e18e506479c5169142">S_UartTxTimerHandler</a>(&amp;<a class="code" href="b__driver_8h.html#a24eaada719ebb4b96e4410f770a89343">SUART_Driver1</a>);</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;    <a class="code" href="group___s_u_a_r_t___exported___functions.html#gad094065227e6ff63be1daf20407d821c">S_UartRxTimerHandler</a>(&amp;<a class="code" href="b__driver_8h.html#a24eaada719ebb4b96e4410f770a89343">SUART_Driver1</a>);</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    <a class="code" href="group___s_u_a_r_t___exported___functions.html#gac7be839335ad31e18e506479c5169142">S_UartTxTimerHandler</a>(&amp;<a class="code" href="b__driver_8h.html#ab800dcb63b84a79c806de44eca01c87e">SUART_Driver2</a>);</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    <a class="code" href="group___s_u_a_r_t___exported___functions.html#gad094065227e6ff63be1daf20407d821c">S_UartRxTimerHandler</a>(&amp;<a class="code" href="b__driver_8h.html#ab800dcb63b84a79c806de44eca01c87e">SUART_Driver2</a>);    </div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;}</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;</div><div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="group___h_a_l___exported___functions.html#gaac016f215b4e79799b0e083c4d6813dd">  199</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___h_a_l___exported___functions.html#gaac016f215b4e79799b0e083c4d6813dd">bLogOutput</a>(<span class="keywordtype">void</span> *p)</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;{</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    HAL_UART_Transmit(&amp;<a class="code" href="group___h_a_l___private___variables.html#ga2cf715bef37f7e8ef385a30974a5f0d5">huart1</a>, p, strlen(p), 0xffff);    </div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;}</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;</div><div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="group___h_a_l___exported___functions.html#gac4b3d313f1c9c001234743725e491b9a">  205</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___h_a_l___exported___functions.html#gac4b3d313f1c9c001234743725e491b9a">bHalEnterCritical</a>()</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;{</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;}    </div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;</div><div class="line"><a name="l00210"></a><span class="lineno"><a class="line" href="group___h_a_l___exported___functions.html#ga9b005cf96b043e836780e1cc1b9254fc">  210</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___h_a_l___exported___functions.html#ga9b005cf96b043e836780e1cc1b9254fc">bHalExitCritical</a>()</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;{</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;}</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;</div><div class="line"><a name="l00219"></a><span class="lineno"><a class="line" href="group___h_a_l___exported___functions.html#ga1e845f28a0763b4046d1c7cdcf227e52">  219</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___h_a_l___exported___functions.html#ga1e845f28a0763b4046d1c7cdcf227e52">bHalIncSysTick</a>()</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;{</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    <a class="code" href="group___h_a_l___private___variables.html#gaf4192a6f2331016cae3bcd9e5f2c7e20">bSysTick</a> += 1;</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;}</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;</div><div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="group___h_a_l___exported___functions.html#ga67c9cec578e4150ae30c526e88e60f97">  224</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___h_a_l___exported___functions.html#ga67c9cec578e4150ae30c526e88e60f97">bHalInit</a>()</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;{</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    <span class="comment">// Add code ...gpio init or some other functions</span></div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;}</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;<span class="comment">/************************ Copyright (c) 2019 Bean *****END OF FILE****/</span></div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;</div><div class="ttc" id="b__driver_8h_html_a24eaada719ebb4b96e4410f770a89343"><div class="ttname"><a href="b__driver_8h.html#a24eaada719ebb4b96e4410f770a89343">SUART_Driver1</a></div><div class="ttdeci">bDriverInterface_t SUART_Driver1</div></div>
<div class="ttc" id="group___h_a_l___exported___functions_html_ga9b005cf96b043e836780e1cc1b9254fc"><div class="ttname"><a href="group___h_a_l___exported___functions.html#ga9b005cf96b043e836780e1cc1b9254fc">bHalExitCritical</a></div><div class="ttdeci">void bHalExitCritical()</div><div class="ttdef"><b>Definition:</b> <a href="b__hal_8c_source.html#l00210">b_hal.c:210</a></div></div>
<div class="ttc" id="b__hal_8h_html"><div class="ttname"><a href="b__hal_8h.html">b_hal.h</a></div></div>
<div class="ttc" id="group___s_u_a_r_t___exported___functions_html_gad094065227e6ff63be1daf20407d821c"><div class="ttname"><a href="group___s_u_a_r_t___exported___functions.html#gad094065227e6ff63be1daf20407d821c">S_UartRxTimerHandler</a></div><div class="ttdeci">void S_UartRxTimerHandler(SUART_Driver_t *)</div><div class="ttdoc">RX Timer handler.</div><div class="ttdef"><b>Definition:</b> <a href="b__suart_8c_source.html#l00211">b_suart.c:211</a></div></div>
<div class="ttc" id="b__driver_8h_html_af7f0766bf0208821b81a8470ca44cbd4"><div class="ttname"><a href="b__driver_8h.html#af7f0766bf0208821b81a8470ca44cbd4">SPIFlashDriver</a></div><div class="ttdeci">bDriverInterface_t SPIFlashDriver</div></div>
<div class="ttc" id="group___h_a_l___private___variables_html_gaf4192a6f2331016cae3bcd9e5f2c7e20"><div class="ttname"><a href="group___h_a_l___private___variables.html#gaf4192a6f2331016cae3bcd9e5f2c7e20">bSysTick</a></div><div class="ttdeci">volatile uint32_t bSysTick</div><div class="ttdef"><b>Definition:</b> <a href="b__hal_8c_source.html#l00078">b_hal.c:78</a></div></div>
<div class="ttc" id="group___h_a_l___private___functions_html_ga89861a6c2d2dd31b3d7374ee5777d89a"><div class="ttname"><a href="group___h_a_l___private___functions.html#ga89861a6c2d2dd31b3d7374ee5777d89a">bW25X_HalIF</a></div><div class="ttdeci">bW25X_Private_t bW25X_HalIF</div><div class="ttdef"><b>Definition:</b> <a href="b__hal_8c_source.html#l00125">b_hal.c:125</a></div></div>
<div class="ttc" id="group___h_a_l___exported___functions_html_gaac016f215b4e79799b0e083c4d6813dd"><div class="ttname"><a href="group___h_a_l___exported___functions.html#gaac016f215b4e79799b0e083c4d6813dd">bLogOutput</a></div><div class="ttdeci">void bLogOutput(void *p)</div><div class="ttdef"><b>Definition:</b> <a href="b__hal_8c_source.html#l00199">b_hal.c:199</a></div></div>
<div class="ttc" id="group___h_a_l___private___functions_html_ga29cdd536195d19aa494d8b4e4e2185de"><div class="ttname"><a href="group___h_a_l___private___functions.html#ga29cdd536195d19aa494d8b4e4e2185de">bSUART_Private1</a></div><div class="ttdeci">bSUART_Private_t bSUART_Private1</div><div class="ttdef"><b>Definition:</b> <a href="b__hal_8c_source.html#l00167">b_hal.c:167</a></div></div>
<div class="ttc" id="group___h_a_l___exported___functions_html_ga1e845f28a0763b4046d1c7cdcf227e52"><div class="ttname"><a href="group___h_a_l___exported___functions.html#ga1e845f28a0763b4046d1c7cdcf227e52">bHalIncSysTick</a></div><div class="ttdeci">void bHalIncSysTick()</div><div class="ttdoc">Call this function _TICK_FRQ_HZ times per second _TICK_FRQ_HZ.</div><div class="ttdef"><b>Definition:</b> <a href="b__hal_8c_source.html#l00219">b_hal.c:219</a></div></div>
<div class="ttc" id="structb_s_u_a_r_t___private__t_html"><div class="ttname"><a href="structb_s_u_a_r_t___private__t.html">bSUART_Private_t</a></div><div class="ttdef"><b>Definition:</b> <a href="b__suart_8h_source.html#l00069">b_suart.h:69</a></div></div>
<div class="ttc" id="group___h_a_l___private___functions_html_ga84e9a44bc004fd3206f924e4081b1502"><div class="ttname"><a href="group___h_a_l___private___functions.html#ga84e9a44bc004fd3206f924e4081b1502">NEW_SUART_DRV</a></div><div class="ttdeci">NEW_SUART_DRV(SUART_Driver1, bSUART_Private1)</div></div>
<div class="ttc" id="group___h_a_l___exported___functions_html_ga67c9cec578e4150ae30c526e88e60f97"><div class="ttname"><a href="group___h_a_l___exported___functions.html#ga67c9cec578e4150ae30c526e88e60f97">bHalInit</a></div><div class="ttdeci">void bHalInit()</div><div class="ttdef"><b>Definition:</b> <a href="b__hal_8c_source.html#l00224">b_hal.c:224</a></div></div>
<div class="ttc" id="structb_w25_x___private__t_html_aa2e98ee17d950173785f0a6995b093ef"><div class="ttname"><a href="structb_w25_x___private__t.html#aa2e98ee17d950173785f0a6995b093ef">bW25X_Private_t::pSPI_ReadWriteByte</a></div><div class="ttdeci">uint8_t(* pSPI_ReadWriteByte)(uint8_t)</div><div class="ttdef"><b>Definition:</b> <a href="b__w25x_8h_source.html#l00058">b_w25x.h:58</a></div></div>
<div class="ttc" id="group___h_a_l___private___functions_html_gae68a78bd12d688eaf811275a7ed10df8"><div class="ttname"><a href="group___h_a_l___private___functions.html#gae68a78bd12d688eaf811275a7ed10df8">bSUART_Private2</a></div><div class="ttdeci">bSUART_Private_t bSUART_Private2</div><div class="ttdef"><b>Definition:</b> <a href="b__hal_8c_source.html#l00172">b_hal.c:172</a></div></div>
<div class="ttc" id="b__driver_8h_html"><div class="ttname"><a href="b__driver_8h.html">b_driver.h</a></div></div>
<div class="ttc" id="group___h_a_l___private___functions_html_ga8a3b0ad512a6e6c6157440b68d395eac"><div class="ttname"><a href="group___h_a_l___private___functions.html#ga8a3b0ad512a6e6c6157440b68d395eac">HAL_TIM_PeriodElapsedCallback</a></div><div class="ttdeci">void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)</div><div class="ttdef"><b>Definition:</b> <a href="b__hal_8c_source.html#l00181">b_hal.c:181</a></div></div>
<div class="ttc" id="group___h_a_l___private___functions_html_gad848c83fbd7e14a777f7f417b7f46b87"><div class="ttname"><a href="group___h_a_l___private___functions.html#gad848c83fbd7e14a777f7f417b7f46b87">NEW_W25X_DRV</a></div><div class="ttdeci">NEW_W25X_DRV(SPIFlashDriver, bW25X_HalIF)</div></div>
<div class="ttc" id="group___h_a_l___private___variables_html_ga2cf715bef37f7e8ef385a30974a5f0d5"><div class="ttname"><a href="group___h_a_l___private___variables.html#ga2cf715bef37f7e8ef385a30974a5f0d5">huart1</a></div><div class="ttdeci">UART_HandleTypeDef huart1</div></div>
<div class="ttc" id="structb_s_u_a_r_t___private__t_html_a2ca5ac31917efe777c252ab05f01e406"><div class="ttname"><a href="structb_s_u_a_r_t___private__t.html#a2ca5ac31917efe777c252ab05f01e406">bSUART_Private_t::pTxPIN_Control</a></div><div class="ttdeci">void(* pTxPIN_Control)(uint8_t)</div><div class="ttdef"><b>Definition:</b> <a href="b__suart_8h_source.html#l00072">b_suart.h:72</a></div></div>
<div class="ttc" id="group___h_a_l___private___functions_html_gab9da65f935e805137e2eb4e18c5ab224"><div class="ttname"><a href="group___h_a_l___private___functions.html#gab9da65f935e805137e2eb4e18c5ab224">hspi2</a></div><div class="ttdeci">SPI_HandleTypeDef hspi2</div></div>
<div class="ttc" id="group___s_u_a_r_t___exported___functions_html_gac7be839335ad31e18e506479c5169142"><div class="ttname"><a href="group___s_u_a_r_t___exported___functions.html#gac7be839335ad31e18e506479c5169142">S_UartTxTimerHandler</a></div><div class="ttdeci">void S_UartTxTimerHandler(SUART_Driver_t *)</div><div class="ttdoc">TX Timer handler.</div><div class="ttdef"><b>Definition:</b> <a href="b__suart_8c_source.html#l00203">b_suart.c:203</a></div></div>
<div class="ttc" id="group___h_a_l___exported___functions_html_gac4b3d313f1c9c001234743725e491b9a"><div class="ttname"><a href="group___h_a_l___exported___functions.html#gac4b3d313f1c9c001234743725e491b9a">bHalEnterCritical</a></div><div class="ttdeci">void bHalEnterCritical()</div><div class="ttdef"><b>Definition:</b> <a href="b__hal_8c_source.html#l00205">b_hal.c:205</a></div></div>
<div class="ttc" id="b__driver_8h_html_ab800dcb63b84a79c806de44eca01c87e"><div class="ttname"><a href="b__driver_8h.html#ab800dcb63b84a79c806de44eca01c87e">SUART_Driver2</a></div><div class="ttdeci">bDriverInterface_t SUART_Driver2</div></div>
<div class="ttc" id="structb_w25_x___private__t_html"><div class="ttname"><a href="structb_w25_x___private__t.html">bW25X_Private_t</a></div><div class="ttdef"><b>Definition:</b> <a href="b__w25x_8h_source.html#l00056">b_w25x.h:56</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
